<template>
  <!-- 公司信息组件 -->
  <el-form label-width="100px">
    <el-form-item label="企业名称">
      <el-input disabled v-model="companyInfo.name"/>
    </el-form-item>
    <el-form-item label="公司地址">
      <el-input disabled v-model="companyInfo.companyAddress"/>
    </el-form-item>
    <el-form-item label="公司电话">
      <el-input disabled v-model="companyInfo.companyPhone"/>
    </el-form-item>
    <el-form-item label="邮箱">
      <el-input disabled v-model="companyInfo.mailbox"/>
    </el-form-item>
    <el-form-item label="备注">
      <el-input disabled v-model="companyInfo.remarks"/>
    </el-form-item>
  </el-form>
</template>
<script>
import { mapState } from 'vuex'
import { companyAPI } from '@/api/'
export default {
  data() {
    return {
      companyInfo: ''
    }
  },
  computed: {
    ...mapState('user', ['userInfo'])
  },
  async created() {
    const res = await companyAPI(this.userInfo.companyId)
    this.companyInfo = res.data
  }
}
</script>

<style></style>
